package com.demo.shardingsphere.supplier.service;


import com.demo.shardingsphere.supplier.model.SupplierOrder;

import java.util.List;

/**
 * 订单操作类
 */
public interface ISupplierOrderService {

    /**
     * 插入订单
     * @param supplierOrder
     * @return
     */
    int insertOrder(SupplierOrder supplierOrder);

    /**
     * 根据商户id查询订单列表
     * @param supplierId
     * @return
     */
    List<SupplierOrder> queryOrderListBySupplierId(Long supplierId);
}
